package com.atjava.webspider.gui.help;

import java.awt.Font;
import java.awt.Frame;
import java.awt.Rectangle;
import java.awt.SystemColor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class AboutGui extends JDialog {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JLabel jLabel = null;
	private JButton jButton = null;
	private JLabel jLabel2 = null;
	private JLabel jLabel3 = null;
	/**
	 * @param owner
	 */
	public AboutGui(Frame owner,boolean modal) {
		super(owner,modal);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(280, 162);
		this.setTitle("Webspider");
		this.setContentPane(getJContentPane());
		this.setLocationRelativeTo(getOwner());
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jLabel3 = new JLabel();
			jLabel3.setBounds(new Rectangle(21, 6, 232, 30));
			jLabel3.setIcon(new ImageIcon(getClass().getResource("/spider.png")));
			jLabel3.setFont(new Font("Dialog", Font.BOLD, 14));
			jLabel3.setForeground(SystemColor.textHighlight);
			jLabel3.setText("  Webspider  v3.3.0  Beta");
			jLabel2 = new JLabel();
			jLabel2.setBounds(new Rectangle(28, 68, 233, 18));
			jLabel2.setText("QQ：33745658  Email：kyo@atjava.com");
			jLabel = new JLabel();
			jLabel.setText("Powered by AtJava 工作室 2010 ");
			jLabel.setFont(new Font("Dialog", Font.BOLD, 12));
			jLabel.setBounds(new Rectangle(50, 40, 189, 25));
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(jLabel, null);
			jContentPane.add(getJButton(), null);
			jContentPane.add(jLabel2, null);
			jContentPane.add(jLabel3, null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton() {
		if (jButton == null) {
			jButton = new JButton();
			jButton.setBounds(new Rectangle(96, 95, 70, 25));
			jButton.setText("确定");
			jButton.addActionListener(new ActionListener(){
				public void actionPerformed(ActionEvent e) {
					AboutGui.this.setVisible(false);
				}
			});
		}
		return jButton;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
